package org.pro.core.validateCode.repository;

import org.pro.core.validateCode.ValidateCode;
import org.pro.core.validateCode.ValidateCodeType;
import org.springframework.web.context.request.ServletWebRequest;

/**
 * 存放验证码的仓库
 * @author luoqiz
 *
 */
public interface ValidateCodeRepository {

	void save(ServletWebRequest request, ValidateCode code, ValidateCodeType validateCodeType);

	ValidateCode get(ServletWebRequest request, ValidateCodeType validateCodeType);

	void remove(ServletWebRequest request, ValidateCodeType validateCodeType);
}
